package com.saic.services.zonestore;

import android.os.Parcel;
import android.os.Parcelable;

public class ZoneStoreAppInfo implements Parcelable {

    private String consumerName;
    private String downloadURL;
    private String token;
    private String appID;
    private String userID;
    private String vehicleVIN;
    private String appInfoReserved;

    public ZoneStoreAppInfo() {
    }

    public ZoneStoreAppInfo(String consumerName, String downloadURL, String token,
                            String appID, String userID, String vehicleVIN, String appInfoReserved) {
        this.consumerName = consumerName;
        this.downloadURL = downloadURL;
        this.token = token;
        this.appID = appID;
        this.userID = userID;
        this.vehicleVIN = vehicleVIN;
        this.appInfoReserved = appInfoReserved;
    }

    protected ZoneStoreAppInfo(Parcel in) {
        consumerName = in.readString();
        downloadURL = in.readString();
        token = in.readString();
        appID = in.readString();
        userID = in.readString();
        vehicleVIN = in.readString();
        appInfoReserved = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(consumerName);
        dest.writeString(downloadURL);
        dest.writeString(token);
        dest.writeString(appID);
        dest.writeString(userID);
        dest.writeString(vehicleVIN);
        dest.writeString(appInfoReserved);
    }

    public void readFromParcel(Parcel in) {
        consumerName = in.readString();
        downloadURL = in.readString();
        token = in.readString();
        appID = in.readString();
        userID = in.readString();
        vehicleVIN = in.readString();
        appInfoReserved = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ZoneStoreAppInfo> CREATOR = new Creator<ZoneStoreAppInfo>() {
        @Override
        public ZoneStoreAppInfo createFromParcel(Parcel in) {
            return new ZoneStoreAppInfo(in);
        }

        @Override
        public ZoneStoreAppInfo[] newArray(int size) {
            return new ZoneStoreAppInfo[size];
        }
    };

    public String getConsumerName() {
        return consumerName;
    }

    public void setConsumerName(String consumerName) {
        this.consumerName = consumerName;
    }

    public String getDownloadURL() {
        return downloadURL;
    }

    public void setDownloadURL(String downloadURL) {
        this.downloadURL = downloadURL;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getAppID() {
        return appID;
    }

    public void setAppID(String appID) {
        this.appID = appID;
    }

    public String getUserID() {
        return userID;
    }

    public void setUserID(String userID) {
        this.userID = userID;
    }

    public String getVehicleVIN() {
        return vehicleVIN;
    }

    public void setVehicleVIN(String vehicleVIN) {
        this.vehicleVIN = vehicleVIN;
    }

    public String getAppInfoReserved() {
        return appInfoReserved;
    }

    public void setAppInfoReserved(String appInfoReserved) {
        this.appInfoReserved = appInfoReserved;
    }


}
